from manim import *
from numpy import flip, insert

LV,QL,QH,JH='#75cfb8','#bbdfc8','#f0e5d8','#ffc478'

class p1(MovingCameraScene):
    def construct(self):
        # self.camera.frame.save_state()
        # self.add(NumberPlane())
        # self.camera.frame.rotate(13*DEGREES,about_point=[0.0, 0.0, 1.0])
        t=MathTex(r'\Rightarrow')
        t1=MathTex(r'\begin{aligned}-x^{2}+\frac{1}{x} &=0 \\\frac{1}{x} &=x^{2} \\1 &=x^{3}\\x&=1. \end{aligned}').next_to(t,LEFT)
        t2=MathTex(r'\begin{aligned}x^{2}+x+1&=0\\(1)^{2}+1+1 &=0 \\3 &=0. \end{aligned}').next_to(t,RIGHT)
        self.add(t,t1,t2)
        self.wait()

